package com.example.project.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;

import java.time.LocalDateTime;

@ApiModel("File 表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class File implements Serializable {
    private static final long serialVersionUID = 306491304052335188L;
    @ApiModelProperty("${column.comment}")
    private Long id;

    @ApiModelProperty("合同、非合同id")
    private Long noId;

    @ApiModelProperty("1:合同 2：非合同")
    private Integer type;

    @ApiModelProperty("文件名")
    private String fileOriginName;

    @ApiModelProperty("文件后缀")
    private String fileSuffix;

    @ApiModelProperty("系统存储文件")
    private String fileObjectName;

    @ApiModelProperty("文件编码")
    private String fileCode;

    @ApiModelProperty("是否私密")
    private String secretFlag;

    @ApiModelProperty("文件大小")
    private String fileSizeInfo;

    @ApiModelProperty("4")
    private String fileLocation;

    @ApiModelProperty("文件存储桶")
    private String fileBucket;

    @ApiModelProperty("1")
    private Integer fileStatus;

    @ApiModelProperty("文件url")
    private String fileUrl;

    @ApiModelProperty("文件版本")
    private Integer fileVersion;

    @ApiModelProperty("文件id")
    private Integer fileId;

    @ApiModelProperty("文件kb大小")
    private String fileSizeKb;

    @ApiModelProperty("文件类型  1:图片、2、音频 、3:视频、4:文档 、5：zip包")
    private Integer fileType;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人，枚举保存")
    private Long createUser;



}

